<template>
  <div id="app">
    <el-row>
      <el-col :span="2">
        <div class="grid-content bg-purple-dark">
          <el-menu
            default-active="1"
            class="el-menu-vertical-demo"
            :router=true
            :collapse="isCollapse"
            :default-openeds="[1]"
            :unique-opened="true"
          >
            <el-menu-item index="1">
              <i class="el-icon-date"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title">导航二</span>
            </el-menu-item>
            <el-menu-item index="3">
              <i class="el-icon-document"></i>
              <span slot="title">导航三</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">导航四</span>
            </el-menu-item>
          </el-menu>
        </div>
      </el-col>
      <el-col :span="22">
        <div class="grid-content bg-purple-dark">
          <router-view />
        </div>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      isCollapse:true
    }
  },
  methods:{

  }
}
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
